<%--
  Created by IntelliJ IDEA.
  User: 95184
  Date: 2023/03/02
  Time: 下午 09:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>更新</title>
</head>
<body>
<h3 align='center'>部门更新</h3>
<div style="color: red;text-align: center">${error}</div>
<form action="/EmpServlet/update" method="post">
    <table border="1" width="400px" align="center">
        <tr align="center">
            <td>员工编号:</td>
            <td><input readonly="readonly" type="text" name="empId" value="${emp.empId}"
                       style="border: 0px;width: 100% ; height: 100%"></td>
        </tr>
        <tr align="center">
            <td>员工名称:</td>
            <td><input type="text" name="empName" value="${emp.empName}" style="border: 0px;width: 100% ; height: 100%"></td>
        </tr>
        <tr align="center">
            <td>员工性别:</td>
            <td><input type="text" name="sex" value="${emp.sex}"  style="border: 0px;width: 100% ; height: 100%"></td>
        </tr>
        <tr align="center">
            <td>电话号码:</td>
            <td><input type="text" name="phoneNum" value="${emp.phoneNum} " style="border: 0px;width: 100% ; height: 100%"></td>
        </tr>
        <tr align="center">
            <td>地址:</td>
            <td><input type="text" name="province" value="${emp.province}"  style="border: 0px;width: 100% ; height: 100%"></td>
        </tr>
        <tr align="center">
            <td>入职时间:</td>
            <td><input type="text" name="hireDate" value="${emp.hireDate}"  style="border: 0px;width: 100% ; height: 100%"></td>
        </tr>
        <tr align="center">
            <td>部门编号:</td>
            <td><input type="text" name="deptNo" value="${emp.deptNo}"  style="border: 0px;width: 100% ; height: 100%"></td>
        </tr>
        <tr align="center">
            <td>员工工资:</td>
            <td><input type="text" name="salary" value="${emp.salary}" style="border: 0px;width: 100% ; height: 100%"></td>
        </tr>
        <tr align="center">
            <td>员工密码:</td>
            <td><input type="text" name="password" value="${emp.password}"  style="border: 0px;width: 100% ; height: 100%"></td>
        </tr>
        <tr>
            <td colspan="2" align="center"><input type="submit" value="更新"></td>
        </tr>
    </table>
</form>
</body>
</html>
